﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.View.Order
{
    /// <summary>
    /// 订单列表
    /// </summary>
    public class OrderListVo
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int OrderStatus { get; set; }

        /// <summary>
        /// 运费
        /// </summary>
        public decimal LogisticsFee { get; set; }

        /// <summary>
        /// 支付金额
        /// </summary>
        public decimal OrderAmount { get; set; }

        /// <summary>
        /// 商品信息
        /// </summary>
        public List<OrderListGoodsVo> Goods { get; set; }
    }

    /// <summary>
    /// 订单列表商品信息
    /// </summary>
    public class OrderListGoodsVo
    {
        /// <summary>
        /// 订单商品记录ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public long GoodsId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 商品规格ID
        /// </summary>
        public long GoodsSpecId { get; set; }

        /// <summary>
        /// 商品规格名称
        /// </summary>
        public String GoodsSpecName { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int GoodsQuantity { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        public string GoodsImage { get; set; }

        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal GoodsPrice { get; set; }

        /// <summary>
        /// 是否是赠品
        /// </summary>
        public bool IsGift { get; set; }
    }
}
